---
name: "mlpack_kernel_KernelTraits_ CosineDistance _"
section: "3"
platform: "linux"
package: "mlpack-doc"
version: "1.0.10-1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/mlpack_kernel_KernelTraits_ CosineDistance _"
---

# mlpack\_kernel\_KernelTraits\_ CosineDistance \_(3)

Kernel traits for the cosine distance.

## NAME

mlpack::kernel::KernelTraits\< CosineDistance \> -

Kernel traits for the cosine distance.

## SYNOPSIS

### Static Public Attributes

static const bool **IsNormalized** = true\
 *The cosine kernel is normalized: K(x, x) = 1 for all x.*

## Detailed Description

### template\<\>class mlpack::kernel::KernelTraits\< CosineDistance \>

Kernel traits for the cosine distance.

Definition at line 66 of file cosine\_distance.hpp.

## Member Data Documentation

### const bool mlpack::kernel::KernelTraits\< CosineDistance \>::IsNormalized = true` [static]`

The cosine kernel is normalized: K(x, x) = 1 for all x.

Definition at line 70 of file cosine\_distance.hpp.

## Author

Generated automatically by Doxygen for MLPACK from the source code.
